<template>
  <div class="wrapper_bottom">
<!-- 底部留白   -->
  <div class="bottommargin"></div>
<!-- 底部栏   -->
  <ul class="pagebottom">
    <li @click="toIndex">
      <i class="fa fa-home"></i>
      <p>首页</p>
    </li>
    <li @click="toFind">
      <i class="fa fa-compass"></i>
      <p>发现</p>
    </li>
    <li @click="toOrderList">
      <i class="fa fa-file-text-o"></i>
      <p>订单</p>
    </li>
    <li @click="toUser">
      <i class="fa fa-user-o"></i>
      <p>我的</p>
    </li>
  </ul>
    </div>
</template>

<script>
export default {
  name: "Footer",
  methods:{
    toIndex(){
      //跳转到主页
      this.$router.push({path:'/index'});
    },
    toOrderList(){
      //跳转到订单列表
      this.$router.push({path:'/orderList'});
    },
    toUser(){
      //跳转到个人中心
      this.$router.push({path:'/homePage'});
    },
    toFind(){
      //跳转到发现页面
      this.$router.push({path:'/businessList',query:{orderTypeId:-1}});
    }
  }
}
</script>

<style scoped>
.wrapper_bottom {
  width: 100%;
}

.wrapper_bottom .bottommargin{
  width: 100%;
  height:14vw;
}

.wrapper_bottom .pagebottom{
  width: 100%;
  height: 14vw;
  border-top: solid 1px #DDD;
  background-color: #fff;

  position:fixed;
  left: 0;
  bottom: 0;

  display: flex;
  justify-content: space-around;
  align-items: center;
}

.wrapper_bottom .pagebottom li{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  color: #999;
  user-select: none;
  cursor: pointer;
}

.wrapper_bottom .pagebottom li p{
  font-size: 2.8vw;
}

.wrapper_bottom .pagebottom li i{
  font-size: 5vw;
}
</style>